package com.woody.aggregate.settings.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * &copy; All rights Reserved
 *
 * @author wénkǎi.zhāng 2025-03-18
 */
@Data
@ApiModel
public class SaveSysCategoryConfigReq {

    @ApiModelProperty(value = "分类id，编辑时必传", example = "2")
    @Min(value = 1, message = "分类ID错误")
    private Integer categoryId;

    @ApiModelProperty(value = "业务类型：1=弹窗规则分类。新增分类必传，编辑时无效", required = true, example = "1")
    @NotNull(message = "业务类型不能为空")
    private Integer bizType;

    @ApiModelProperty(value = "分类名称", required = true, example = "金牌商家青浦")
    @NotBlank(message = "分类名称不能为空")
    @Length(max = 255, message = "分类名称不能超过255个字符")
    private String categoryName;

    @ApiModelProperty(value = "用户id", required = true, example = "12131233")
    @NotNull(message = "操作用户不能为空")
    private Long operatorUserId;

}
